"""create users table

Revision ID: 1bb349590584
Revises: cecd2da454da
Create Date: 2020-04-06 22:26:56.320592

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '1bb349590584'
down_revision = 'cecd2da454da'
branch_labels = None
depends_on = None

import datetime

def upgrade():
    op.create_table(
        'users',
        sa.Column('id', sa.Integer, primary_key=True),
        sa.Column('name', sa.String(32), nullable=True),
        sa.Column('fullname', sa.String(128)),
        sa.Column('addresss', sa.String(128)),
        sa.Column('salary', sa.String(32)),
        sa.Column('info', sa.String(128)),
        sa.Column('created', sa.DateTime, nullable=False, default=datetime.datetime.now()),

    )


def downgrade():
    op.drop_table('users')
